<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Accesslevelmodel extends Model {
	var $request_url = null;
	var $user_id = 0;

	function __construct ()
	{
		parent::Model();
		$this->load->database();
	}
	function get ()
	{
		$this->db->where('user_id', $this->user_id);
		$this->db->where('request_url', $this->request_url);
		return $this->db->get('accesslevel')->num_rows;
	}
}
